package com.yummy.service;

import com.yummy.dto.AddressBookCopy;
import com.yummy.entity.AddressBook;
import com.yummy.entity.AddressBook;
import com.yummy.entity.Dish;
import org.apache.commons.math3.analysis.function.Add;

import java.util.List;

/**
 * @author yinbo
 */
public interface AddressService {
	List<AddressBook> queryByUser(Integer userId);

	AddressBook queryDefault(Integer id);

	boolean editAddressBook(AddressBook addressBook);

	boolean addAddressBook(AddressBook addressBook);

	boolean removeAddressBooks(String... ids);

	boolean updateIsDefault(Integer id,Integer isDefault);

	AddressBook findAddressById(Integer id);

	List<AddressBookCopy> queryByUsers(Integer userId);
}
